package com.black.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.black.app.domain.AppUserLevel;

import java.util.List;

/**
 * @author tonneyyy
 * @description 针对表【app_user_level(手机端用户等级)】的数据库操作Service
 * @createDate 2024-09-28 15:01:49
 */
public interface AppUserLevelService extends IService<AppUserLevel> {

    /**
     * 获取所有等级名称
     */
    List<AppUserLevel> getAllLevelName();

    /**
     * 根据等级id查询等级信息
     * @param level
     * @return
     */
    AppUserLevel findById(Integer level);

    /**
     * 获取vip折扣
     * @return
     */
    AppUserLevel getVipDiscount(String levelId);
}
